/**
 *
*/
package com.bbcare.util.nullCheck;

/**
 * @Description: TODO
 * @author MLi
 * @date 2018年4月9日
 * @version V1.0
 */
public class ObjectNullFactory {

	@SuppressWarnings("rawtypes")
	public static ObjectNull createObjectNull(String returnType){
		if(returnType.equals("java.lang.String")){
			return new StringNull();
		} else if(returnType.equals("int") || returnType.equals("java.lang.Integer")){
			return new IntergerNull();
		} else if(returnType.equals("long") || returnType.equals("java.lang.Long")){
			return new LongNull();
		} else if(returnType.equals("float") || returnType.equals("java.lang.Float")){
			return new FloatNull();
		} else if(returnType.equals("double") || returnType.equals("java.lang.Double")){
			return new DoubleNull();
		} else if(returnType.equals("java.util.List")){
			return new ListNull();
		}
		return new ObjectNull();
	}
}
